SRC = $(wildcard *.cpp)
OBJ = $(SRC:%.cpp=%.o)
BIN = mycmd.exe

$(BIN):$(OBJ)
	g++ $^ -std=c++11 -o $@

%.o:%.cpp
	g++ -c $< -std=c++11

.PHONY:clean
clean:
	rm -rf $(BIN) $(OBJ)
